const path = require('path')

module.exports = {
	transpileDependencies: ['uview-ui'],
	configureWebpack: (config) => {
		config.resolve.alias['@'] = path.resolve(__dirname, "./");
		config.resolve.alias['@utils'] = path.resolve(__dirname, "./utils");
		config.resolve.alias['@manager'] = path.resolve(__dirname, "./manager");
		config.resolve.alias['@components'] = path.resolve(__dirname, "./components");
		config.resolve.alias['@static'] = path.resolve(__dirname, "./static");
	},
	chainWebpack: (config) => {
		var vueRule = config.module.rule('vue');
		vueRule.test(/\.(vue|nvue)(\?.*)?$/)
			.use('imageLoader')
			.loader(path.resolve(__dirname, './imageLoader.js'))
			.end();
	},
	productionSourceMap: false,
}